package com.yj.ccs.abs.web.asset.dto;

import com.yj.ccs.abs.common.enums.FundRestreamType;
import com.yj.ccs.abs.web.common.entity.Attachment;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.List;

/**
 * Copyright 2018 (C) Yunjian-VC
 * Created on : 2018/3/24
 * Author     : Unbelievable9
 **/
@Data
public class UpdateFundRestreamDto {

    @NotNull(message = "回款ID不能为空")
    @ApiModelProperty(value = "回款ID", required = true, example = "1")
    private Long id;

    @NotNull(message = "回款日期不能为空")
    @ApiModelProperty(value = "回款日期", required = true, example = "2018-01-01")
    private LocalDate date;

    @NotNull(message = "回款金额不能为空")
    @ApiModelProperty(value = "回款金额", required = true, example = "566800.00")
    private BigDecimal money;

    @NotNull(message = "回款方式不能为空")
    @ApiModelProperty(value = "回款方式<br>1-电汇<br>2-承兑<br>3-电汇+承兑", required = true, example = "WIRE")
    private FundRestreamType type;

    @ApiModelProperty(value = "票据金额", example = "6666666660")
    private BigDecimal note_money;

    @ApiModelProperty(value = "票据到期日", example = "2018-01-01")
    private LocalDate expire_date;

    @ApiModelProperty(value = "回款单据")
    private List<Attachment> files;
}
